# include <stdio.h>
int main()
{
	float e=0;
	int i=0,w=0,q=0,b=0,s=0,g=0;
	printf("enter\n");
	scanf("%f",&e);
	while (e>=100000)
	{
		printf("again enter\n");
		scanf("%f",&e);
	}
	if (e<10)
		i=1;
	else if (e<100)
		i=2;
	else if (e<1000)
		i=3;
	else if (e<10000)
		i=4;
	else if (e<100000)
		i=5;
	printf("bit=%d\n",i);
	w=e/10000;
	q=(e-w*10000)/1000;
	b=(e-w*10000-q*1000)/100;
	s=(e-w*10000-q*1000-b*100)/10;
	g=(e-w*10000-q*1000-b*100-s*10)/1;
	switch (i)
	{
	case 1:printf("%d,%d\n",g,g);break;
	case 2:printf("%d%d,%d%d\n",s,g,g,s);break;
	case 3:printf("%d%d%d,%d%d%d\n",b,s,g,g,s,b);break;
	case 4:printf("%d%d%d%d,%d%d%d%d\n",q,b,s,g,g,s,b,q);break;
	case 5:printf("%d%d%d%d%d,%d%d%d%d%d\n",w,q,b,s,g,g,s,b,q,w);break;
	}
	return 0;
}

